package com.kaiwukj.android.ufamily.mvp.ui.page.message;

import com.kaiwukj.android.mcas.mvp.IModel;
import com.kaiwukj.android.mcas.mvp.IView;
import com.kaiwukj.android.ufamily.mvp.http.entity.result.ChatSearchGroupResult;
import com.kaiwukj.android.ufamily.mvp.http.entity.result.ChatSearchPersonResult;

import java.util.List;

import io.reactivex.Observable;

public interface MessageContract {

    interface SearchView extends IView {

        void onPersonResult(List<ChatSearchPersonResult> results);

        void onGroupResult(List<ChatSearchGroupResult> results);

    }

    interface Model extends IModel {
        Observable<List<ChatSearchPersonResult>> searchChatPersonResult(String keyword);

        Observable<List<ChatSearchGroupResult>> searchChatGroupResult(String keyword);

        Observable<Integer> attention(int userId);

        Observable<Integer> cancelAttention(int userId);
    }

}
